#include "stm32f10x.h"                  // Device header
#include "Buzzer.h"
#include "LightSensor.h"

int main()
{
	Buzzer_Init();
	LightSensor_Init();
	uint8_t Light;
	while(1)
	{
		Light = LightSensor_Get();
		if(Light == 1)
			Buzzer_On();
		else
			Buzzer_Off();
	}
}
